package com.cafuc.game;

import javax.swing.*;

public class Main {
    public static void main(String[] args) {
        //1创建窗口（画板）
        JFrame frame = new JFrame();
        frame.setSize(800,600);
        frame.setLocationRelativeTo(null);
        frame.setDefaultCloseOperation(3);
        GamePanel panel =new GamePanel();
        frame.add(panel);
        //调用画纸的watching
        panel.watching();
        //调用auto方法
        panel.auto();
        frame.setVisible(true);
    }
}
